.class Lorg/zeam/Launcher$WallpaperIntentReceiver;
.super Landroid/content/BroadcastReceiver;
.source "Launcher.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/zeam/Launcher;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "WallpaperIntentReceiver"
.end annotation


# instance fields
.field private mLauncher:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference",
            "<",
            "Lorg/zeam/Launcher;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method constructor <init>(Landroid/app/Application;Lorg/zeam/Launcher;)V
    .locals 0
    .parameter "application"
    .parameter "launcher"

    .prologue
    .line 2724
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    .line 2725
    invoke-virtual {p0, p2}, Lorg/zeam/Launcher$WallpaperIntentReceiver;->setLauncher(Lorg/zeam/Launcher;)V

    .line 2726
    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 3
    .parameter "context"
    .parameter "intent"

    .prologue
    .line 2734
    iget-object v2, p0, Lorg/zeam/Launcher$WallpaperIntentReceiver;->mLauncher:Ljava/lang/ref/WeakReference;

    if-eqz v2, :cond_0

    .line 2735
    iget-object v2, p0, Lorg/zeam/Launcher$WallpaperIntentReceiver;->mLauncher:Ljava/lang/ref/WeakReference;

    invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/zeam/Launcher;

    .line 2736
    .local v0, launcher:Lorg/zeam/Launcher;
    if-eqz v0, :cond_0

    .line 2737
    invoke-virtual {v0}, Lorg/zeam/Launcher;->getWorkspace()Lorg/zeam/Workspace;

    move-result-object v1

    .line 2738
    .local v1, workspace:Lorg/zeam/Workspace;
    if-eqz v1, :cond_0

    .line 2739
    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lorg/zeam/Workspace;->setWallpaper(Z)V

    .line 2743
    .end local v0           #launcher:Lorg/zeam/Launcher;
    .end local v1           #workspace:Lorg/zeam/Workspace;
    :cond_0
    return-void
.end method

.method setLauncher(Lorg/zeam/Launcher;)V
    .locals 1
    .parameter "launcher"

    .prologue
    .line 2729
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lorg/zeam/Launcher$WallpaperIntentReceiver;->mLauncher:Ljava/lang/ref/WeakReference;

    .line 2730
    return-void
.end method
